package utils

import (
	"github.com/gin-gonic/gin"
)

func GetRealIP(c *gin.Context) string {
	// ip := c.Request.Header.Get("X-Real-Ip")
	// if ip == "" {
	// 	ip = strings.Split(c.Request.Header.Get("X-Forwarded-For"), ",")[0]
	// }
	// if ip == "" {
	// 	ip = c.Request.RemoteAddr
	// }
	ip := c.ClientIP()
	return ip
}
